<% form_tag({:controller => :settings, :action => "update", :class => "nf settings", :method => "post"},
  :method => :post, :class => "nf settings") do -%>
  <p>
    <label class="label_input">&nbsp;</label><span class="avatar"><%= image_tag(@user.avatar, :size => "48x48") -%></span><br />
  </p>
  <p>
    <label for="avatar" class="label_input">Avatar: </label>
    <%= text_field :user, :avatar, :size => 40 -%><br />
    <span class="hint">Specify a image link smaller than 96 x 96 in size.</span>
  </p>
  <p>
    <label for="name" class="label_input">Name: </label>
    <%= text_field :user, :name, :size => 40, :disabled => "disabled"-%>
    <span class="hint">Your login name</span>
  </p>
  <p>
    <label for="name" class="label_input">Email: </label>
    <%= text_field :user, :email, :size => 40 -%>
  </p>
  <p>
    <label for="nick_name" class="label_input">Nick Name: </label>
    <%= text_field :user, :nick_name, :size => 40 -%>
    <span class="hint">Don't use blank in nickname, or you will miss @ replies.</span>
  </p>
  <p>
    <label for="sex" class="label_input">Sex: </label>
    <%= select :user, :sex, ["", "Male", "Female"], {:selected => @user.sex} -%>
  </p>
  <p>
    <label for="location" class="label_input">City: </label>
    <%= text_field :user, :location, :size => 40-%>
  </p>
  <p>
    <label for="hometown" class="label_input">Hometown: </label>
    <%= text_field :user, :hometown, :size => 40-%>
  </p>
  <p>
    <label for="nick_name" class="label_input">Website: </label>
    <%= text_field :user, :website, :size => 40-%>
  </p>
  <p>
    <label for="description" class="label_input">Description: </label>
    <%= text_area :user, :description, :cols => 50, :rows => 6 -%>
  </p>
  <p class="act">
    <%= submit_tag "Update", :class => "formbutton" -%>
  </p>
<% end -%>